import Vue from 'vue'
const eventBus = new Vue()
export function emit (name, data) {
  eventBus.$emit(name, data)
}

export function on (name, cb) {
  eventBus.$on(name, cb)
}
